/* 
 * File:   button.h
 * Author: Marcel
 *
 * Created on 11. September 2012, 04:34
 */

#ifndef BUTTON_H
#define	BUTTON_H

#define DIR_BUTTON1     TRISCbits.TRISC4
#define DIR_BUTTON2     TRISCbits.TRISC5
#define PORT_BUTTON1    PORTCbits.RC4
#define PORT_BUTTON2    PORTCbits.RC5

// Bit numbers in button debounce variable
#define BUTTON1         (unsigned char) 0x01
#define BUTTON2         (unsigned char) 0x02

unsigned char button_debounce(void);
unsigned char button_pressed(unsigned char debounce_btn);
void button_init(void);

#endif	/* BUTTON_H */

